package com.example.demo.Service;

import com.example.demo.Dao.PersonDao;
import com.example.demo.entity.Person;
import lombok.Data;

/**
 * @Author : 叶荻风
 * @create : 2024/5/20 16:13
 */
@Data
public class PersonServiceImpl implements PersonService{
    private PersonDao personDao;
    @Override
    public void register(Person person) {
        personDao.save(person);
    }
    @Override
    public Person login(String name) {
        return personDao.queryByName(name);
    }
}
